package com.ruoyi.business.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.business.domain.EmployeeScore;

/**
 * 员工积分Service接口
 * 
 * @author ruoyi
 * @date 2024-11-30
 */
public interface IEmployeeScoreService 
{
    /**
     * 查询员工积分
     * 
     * @param id 员工积分主键
     * @return 员工积分
     */
    public EmployeeScore selectEmployeeScoreById(Long id);

    /**
     * 查询员工积分列表
     * 
     * @param employeeScore 员工积分
     * @return 员工积分集合
     */
    public List<EmployeeScore> selectEmployeeScoreList(EmployeeScore employeeScore);

    /**
     * 新增员工积分
     * 
     * @param employeeScore 员工积分
     * @return 结果
     */
    public int insertEmployeeScore(EmployeeScore employeeScore);

    /**
     * 修改员工积分
     * 
     * @param employeeScore 员工积分
     * @return 结果
     */
    public int updateEmployeeScore(EmployeeScore employeeScore);

    /**
     * 批量删除员工积分
     * 
     * @param ids 需要删除的员工积分主键集合
     * @return 结果
     */
    public int deleteEmployeeScoreByIds(Long[] ids);

    /**
     * 删除员工积分信息
     * 
     * @param id 员工积分主键
     * @return 结果
     */
    public int deleteEmployeeScoreById(Long id);

    /**
     * *  source: [
     *      *             ['product', '2015', '2016'],
     *      *             ['五星级', 43.3, 85.8],
     *      *             ['四星级', 83.1, 73.4],
     *      *             ['三星级', 86.4, 65.2],
     *      *             ['二星级', 72.4, 53.9],
     *      *       ] 返回这个结构
     */
    List<List<Object>> getBarData(EmployeeScore employeeScore);

    List<Map<String, Object>> getPieData(EmployeeScore employeeScore);

    List<List<Object>> getPersonalData(EmployeeScore employeeScore);

    List<Map<String, Object>> getRatingStar(EmployeeScore employeeScore);
}
